import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNext()) { // 注意 while 处理多个 case
            String s1 = in.nextLine();
            String s2 =  in.nextLine();
            if (s1.length() < s2.length()) {
                System.out.println("No");
                return;
            }
            int[] hash1 = new int[26];
            int[] hash2 = new int[26];
            int len = s2.length();
            int validLen = 0;
            for (char c : s2.toCharArray()) {
                hash2[c-'A']++;
            }
            for (char c : s1.toCharArray()) {
                if (++hash1[c-'A'] <= hash2[c-'A']) {
                    validLen++;
                    if (validLen >= len) {
                        System.out.println("Yes");
                        return;
                    }
                }
            }
            System.out.println("No");
        }
    }
}
